﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script type="text/javascript">

        /*
        var n = "abc";
        var t;
        function Test(num) {
        alert("test" + num);
        t = window.setTimeout("Test(\"" + n + "\")", 3000);
        }

        Test(n);
        
        //window.setTimeout(Test, 5000);
        //window.setTimeout("Test(\"" + n + "\")", 5000);
        */

        /*
        function Test2() {
            alert("test2");
        }

        var i = window.setInterval("Test2()", 3000);
    */
        //StartClick
        function ShowTime() {
            var time = new Date();
            document.getElementById("txtClock").value 
                = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds();
        }

        function OnPageLoad() {
            window.setInterval("ShowTime()", 1000);
        }
        //window.document.all.txtClock
        //window.document.getElementById("txtClock")
    </script>
</head>
<body onload="OnPageLoad();">
    <!--<input type="button" value="stopT" onclick="window.clearTimeout(t);" />
    <input type="button" value="stopI" onclick="window.clearInterval(i);" />-->
    <input id="txtClock" type="text" />
</body>
</html>
